<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input id="ip" type="text">
    <div><span id="sp">您输入的值为：</span></div>
    <button id="btn">获取</button>


    <script src="./script.js"></script>
</body>

</html>